package cn.edu.lzu.unitweb.config;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @PackageName: cn.edu.lzu.unitweb.config
 * @ClassName: ExaminerSessionDao
 * @Description: TODO 实现session的序列化
 * @Author: 张琦[QQ:3098086691]
 * @Date: 2019/12/1 11:10
 * @Version: 1.0
 */
@Component
public class ExaminerSessionDao extends EnterpriseCacheSessionDAO {

    protected Serializable doCreate(Session session) {
        Serializable sessionId = this.generateSessionId(session);
        this.assignSessionId(session, sessionId);
        return sessionId;
    }

    protected Session doReadSession(Serializable sessionId) {
        return null;
    }

    protected void doUpdate(Session session) {
    }

    protected void doDelete(Session session) {
    }
}
